import App from './App'
import config from './common/config/default.js'
import information from './common/config/information.js'
import sign from './common/lib/sign.js'
import dry from './common/lib/dry.js'
import encrypt from './common/lib/encrypt.js'
import oss from './common/lib/oss.js'
import refreshLoad from './common/lib/refreshLoad.js'
import request from './common/lib/requestPlus.js'

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
Vue.prototype.$config = config
Vue.prototype.$sign = sign
Vue.prototype.$dry = dry
Vue.prototype.$encrypt = encrypt
Vue.prototype.$oss = oss
Vue.prototype.$information = information
Vue.prototype.$refreshLoad = refreshLoad
Vue.prototype.$request = request
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif